module.exports = app => {
  const { controller, middleware, router } = app;
  router.get('获取角色列表', '/user/role/list', middleware.jwt(), controller.role.list);
  router.post('新增角色', '/user/role/insert', middleware.jwt(), controller.role.insert);
  router.post('更新角色', '/user/role/update', middleware.jwt(), controller.role.update);
  router.post('删除角色', '/user/role/delete', middleware.jwt(), controller.role.delete);
  router.get('初始化角色', '/user/role/init', controller.role.init);
};
